package org.jcb.parser.ext;

import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;

import org.jcb.parser.ITraiteFichier;


public class FileCp1252ToIso88591 implements ITraiteFichier {

public boolean traiteFichier(File file) {
	try {
		System.out.println(file.getName());
		InputStream is = new FileInputStream(file);
		System.out.println(file.getName());
		long length = file.length();
		byte[] bytes = new byte[(int)length];
		is.read(bytes);
		for (long l = 0 ; l < bytes.length ; l++ ) {
			System.out.println(bytes[(int)l]);
			if (bytes[(int)l] == 97) {				
			}
		}
	} catch (Exception e) {
		e.printStackTrace();
	}	
	return true ;
}
	
}
